<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../css/index.css">
    <script src="../../js/vue2.6.js"></script>
    <script src="../../js/vant2.12.js"></script>
</head>
<body>
<div id="app">
    <van-cell title="选择单个日期" :value="date" @click="show = true" />
    <van-calendar v-model="show" @confirm="onConfirm" />
</div>
<script>

    new Vue({
        el: '#app',
        data() {
            return {
                date: '',
                show: false,
            };
        },
        methods: {
            formatDate(date) {
                return `${date.getMonth() + 1}/${date.getDate()}`;
            },
            onConfirm() {
                this.show = false;
                vant.Toast('提示');
               // this.date = this.formatDate(date);
            },
        },
    });
    Vue.use(vant.Calendar);

</script>
</body>
</html>